﻿@model ZhongheCms.Models.GswTblJobInfo
@{
    Layout = "~/Views/Shared/_LayoutWebsite.cshtml";
    string retUrl = "";
    if (ViewContext.HttpContext.Request.UrlReferrer != null)
    {
        retUrl =
          ViewContext.HttpContext.Request.UrlReferrer.PathAndQuery;
    }
    retUrl = "/SunJob/JobDesc/" + Model.Id;
    string interview = "";
    if (!string.IsNullOrEmpty(Model.JobInterview) && Model.JobInterview.Trim() == "是")
    {
        interview = "(需面试)";
    }
    string regRank = "";
    
}
@section head
{
    <link href="/assets/sunjob/css/jobdesctable.css" rel="stylesheet" />
}
<div class="fix gWrapper">
    <div class="breakcrumb">
        <a href="/">首页</a>&nbsp;&gt;&nbsp;
            <a href="/SunJob/JobList">兼职地带</a>
    </div>

    <div class="insidePage_main fl gBor mb15">
        <div class="arctileTitle p10 "  style="width: 830px;">
            <h1>@Model.JobTitle @interview </h1>
            <P>发布日期:@Model.PubDate.ToShortDateString() @Model.PubTime </P>
        </div>
        
        @if (Model.JobState == 1)
        {
            <div class="arctile-moreLink fix ">
                <p class="prev p10">
                    @if (!string.IsNullOrEmpty(ViewBag.msg) && ViewBag.msg == "no")
                    {
                         <span style="color: red">报名失败,请稍后再试</span>
                    }
                </p>
                <p class="next p10">
                    @if (!string.IsNullOrEmpty(ViewBag.msg) && (ViewBag.msg == "ok" || ViewBag.msg == "ex"))
                    {
                        if (ViewBag.msg == "ok")
                        {
                            <span style="color: red">报名成功,请等待审核通过</span>    
                        }
                        if (ViewBag.msg == "ex")
                        {
                            <span style="color: red">您已经报过名了</span>    
                        }
                    }
                    else
                    {
                        if (Session["loginstate"] != null && Session["loginstate"].ToString() == "ok")
                        {
                            //if (Session["UserType"].ToString().Trim()==)
                            if (!string.IsNullOrEmpty(Model.RegRank) && Session["UserType"] != null)
                            {
                                if (Session["UserType"].ToString().Trim() == "无卡会员" && (Model.RegRank.Trim() == "优卡会员" || Model.RegRank.Trim() == "钻石卡会员"))
                                {
                                    regRank = "no";
                                }
                            }
                            if (regRank == "no")
                            {
                                  <span style="color: red">您的会员等级太低,无法报名</span>  
                            }
                            else
                            {
                                   <a   href="/SunJob/JobRegister/@Model.Id" class="ask">
                            <img src="/assets/sunjob/img/login_btn_2.gif" /></a>
                            }
                     
                        }
                        else
                        {
                        <a   href="/SunJob/SignIn/0?returnUrl=@retUrl" class="ask">
                            <img src="/assets/sunjob/img/login_btn_2.gif" /></a>
                        }
                    }



                </p>

            </div>
        }
        <table style="border: 0px solid; margin-top: 10px">
            <tbody>
                <tr>
                    <td class="p">报名截止：</td>
                    <td>@Model.EndDate.ToShortDateString()</td>
                    <td class="p">工作名额：</td>
                    <td>@Model.JobNum
                    </td>
                </tr>
                <tr>
                    <td class="p" width="99">职位编号：</td>
                    <td width="375">@Model.JobNo</td>
                    <td class="p" width="99">职位名称：</td>
                    <td width="375">@Model.JobTitle</td>
                </tr>
                <tr>
                    <td class="p">招聘单位：</td>
                    <td>@Model.CustomerAlias
                    </td>
                    <td class="p">面试要求：</td>
                    <td>@Model.JobInterview</td>
                </tr>
                <tr>
                    <td class="p">性别要求：</td>
                    <td>@Model.GenderName</td>
                    <td class="p">身高要求：</td>
                    <td>@Model.BodyLength</td>
                </tr>
                <tr>

                    <td class="p">工作日期：</td>
                    <td>@Model.WorkDate</td>
                    <td class="p">工作时间：</td>
                    <td>@Model.WorkTime</td>
                </tr>
                <tr>
                    <td class="p">工资待遇：</td>
                    <td>@Model.Salary</td>
                    <td class="p">结算方式</td>
                    <td>@Model.PayTypeName</td>
                </tr>

                <tr>
                    <td class="p">工作地点：</td>
                    <td>@Model.Workplace</td>
                      <td class="p">报名权限：</td>
                    <td>@Model.RegRank</td>

                </tr>


                @if (Session["loginstate"] != null && Session["loginstate"].ToString() == "ok")
                {
                    <tr>
                        <td class="p">工作要求：</td>
                        <td colspan="3">@Html.Raw(Model.JobDesc)</td>
                    </tr>
                }
                else
                {
                    <tr>
                        <td colspan="4" style="color: #f30; font-size: 14px; line-height: 30px;">详细工作信息请您先<a href="/SunJob/SignIn/0?returnUrl=@retUrl">登录</a>再查看</td>
                    </tr>
                }

            </tbody>
        </table>
        <div class="arctileDeatils p5">
            <h3 class="gH3">会员必读内容</h3>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">1、有任何问题请进行电话咨询；咨询时间在9：00-18:00；短信咨询不予以回复；</span></p>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">2、成功预定工作后，请准时参加，无故不到者将被停卡3个月，请同学谨慎报名；</span></p>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">3、工作必须是持卡本人进行工作，其他人员借卡使用的，或者有事让他人代替做的，一经发现，将取消会员资格！</span></p>


        </div>






        <div class="fix arctileDeatils mb15">
            <h3 class="gH3">温馨提示</h3>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">1、集合、面试时，请带好阳光职场会员卡以及信息中所提及的须带物品；</span></p>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">2、面试最好早到5-10分钟，让我们第一步就给厂家一个很好的印象；</span></p>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">3、面对面试官的时候，不要害怕和紧张，把他当做你最好的合作伙伴和朋友，以一颗平常心，去面对他的每一个提问；</span></p>
            <p style="text-indent: 1em;"><span style="font-family: 宋体, SimSun;">4、全面的认识自己，推销自己的优点，承认自己的不足，发挥自己的专长和兴趣，给面试官一个自信并且充满魅力的你；</span></p>



        </div>
    </div>
    <div class="insidePage_sidebar fr ">
        <div class="gBor mb15 bff  hot">
            <h3 class="gH3">最新职位</h3>
            <div>
                <ul class="m15 insidePage-sideBar-list gList">
                    @foreach (var item in Model.JobInfos)
                    {
                        <li><a href="/SunJob/JobDesc/@item.Id" >@item.JobTitle <span style="color: red">@item.Salary</span></a></li>
                    }



                </ul>
            </div>


        </div>
        <div class="gBor mb15 bff">
            <h3 class="gH3">公告通知</h3>
            <ul class="m15 insidePage-sideBar-list gList">
                @foreach (var item in Model.Notices)
                {
                    <li><a href="/Home/ContentShow/@item.Id" target="_blank">@item.ContentTitle</a></li>
                }


            </ul>
        </div>
        <div class="gBor mb15 bff">
            <h3 class="gH3">培训就业</h3>
            <ul class="m15 insidePage-sideBar-list gList">

                @foreach (var item in Model.JobNews)
                {
                    <li><a href="/Home/ContentShow/@item.Id" target="_blank">@item.ContentTitle</a></li>
                }
            </ul>
        </div>






    </div>




</div>
@section footer
{
    
    <script type="text/javascript">

        $(document).ready(function () {
            // $('.ask').jConfirmAction({ question: "你确认要抢单吗？", yesAnswer: "是", cancelAnswer: "否" });
            $('.ask').click(function (e) {

                e.preventDefault();
                thisHref = $(this).attr('href');

                if (confirm('你确定要报名吗?')) {
                    window.location = thisHref;
                }

            });
        });

    </script>
}